﻿@{
    ViewBag.Title = "Edit Wiki";
     Layout = "~/Views/Shared/LayoutWiki.cshtml";
}

<h2>Edit</h2>

<link href="@Url.Content("/Scripts/tiny_mce/themes/advanced/skins/default/ui.css")" rel="Stylesheet"
    type="text/css" />
<link href="@Url.Content("/Scripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css")" rel="Stylesheet"
    type="text/css" />
<link href="@Url.Content("/Content/tabify.css")" rel="Stylesheet"
    type="text/css" />
<script type="text/javascript" src="@Url.Content("/Scripts/tiny_mce/jquery.tinymce.js")"></script>
<script type="text/javascript" src="@Url.Content("/Scripts/loadTinyMce.js")"></script>
<script type="text/javascript" src="@Url.Content("/Scripts/jquery.tabify.js")"></script>
<script type="text/javascript" src="@Url.Content("/Scripts/knockout-2.2.1.js")"></script>
<script type="text/javascript">
    $(function () {
        loadTinyMce();
    });
</script>

@Html.Hidden("routeDataId",@ViewContext.RouteData.Values["id"])

Subject:
<div id="detail-Wiki">
<div><input style="width: 636px" data-bind="value: subject" type="text" /></div>
Content:
<div><textarea id="txtaBody" data-bind="value: body" style="height: 300px; width: 600px" class="tinymce"></textarea></div>
<div><button data-bind ="click: edit">Submit</button></div>
    
</div>